import { lazy } from "react";
const routes = [
    {
        path: "/index",
        component: lazy(() => import("../views/home/index")),
        children: [
            {
                path: "/index/shou",
                component: lazy(() => import("../views/home/shou/Shou")),
            },
            {
                path: "/index/class",
                component: lazy(() => import("../views/home/class/Class")),
            },
            {
                path: "/index/my",
                component: lazy(() => import("../views/home/my/My")),
            },
            {
                path: "/index",
                to: "/index/shou"
            }
        ]
    }, {
        path: "/",
        to: "/index"
    }
]
export default routes